import { ITable } from '@/base-ui';

export const ContentTableConfig: ITable = {
  showIndexColumn: true,
  showSelection: true,
  headTitle: '商品列表',
  propInfo: [
    {
      prop: 'name',
      label: '商品名称',
      minWidth: '80'
    },
    {
      prop: 'oldPrice',
      label: '原价格',
      minWidth: '80'
    },
    {
      prop: 'newPrice',
      label: '现价格',
      minWidth: '80',
      slotName: 'newPrice'
    },
    {
      prop: 'imgUrl',
      label: '商品图片',
      minWidth: '100',
      slotName: 'image'
    },
    {
      prop: 'status',
      label: '状态',
      minWidth: '100',
      slotName: 'status'
    },
    {
      prop: 'createAt',
      label: '创建时间',
      minWidth: '100',
      slotName: 'createAt'
    },
    {
      prop: 'updateAt',
      label: '更新时间',
      minWidth: '100',
      slotName: 'updateAt'
    },
    {
      label: '操作',
      minWidth: '250',
      slotName: 'handler'
    }
  ]
};
